﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="WebSearcher.Results" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <link rel="stylesheet" href="css/style.css" />
    <style>
        #results
        {
            border-top: #6b90da 1px solid;
            background-color: #f0f7f9;
            margin: 0px 8px 14px;
            padding: 0.1em;
            height: 20px;
            line-height: 20px;
        }
        .searchInput
        {
        	font-size: 14px;
            height: 1.5em;
            line-height: 1.5em;
            padding: 2px 2px;
            margin: 2px 0px;
        }
        .searchButton
        {
            font-size: 14px;
            margin: 4px 0px;
            height: 2em;
        }
        #lists
        {
            list-style-type: none;
        }
        #lists .item
        {
            background: #fff;
            margin: 3px 8px;
            color: #000;
            margin: 0.87em 0px 1.31em;
        }
        #lists .item h3
        {
            font-weight: normal;
            font-size: 14px;
        }
        #lists .item div
        {
        	word-wrap:break-word;
        }
    </style>
</head>
<body>
    <div style="width: 700px;" class="center">
        <div align="center">
            <img src="images/logo.jpg" /></div>
        <form runat="server">
        <div class="bbb" id="search" align="center">
            <asp:TextBox runat="server" ID="txtKeyword" CssClass="searchInput" 
                size="42" MaxLength="100">
            </asp:TextBox>&nbsp;
            <asp:Button runat="server" ID="btnSearch" CssClass="searchButton" Text="搜 索" 
                Width="5.6em" onclick="btnSearch_Click"></asp:Button>&nbsp;
            <!-- 
            <asp:Button runat="server" ID="btnSearchInResult" 
                CssClass="searchButton" Text="在结果中查找" Width="10em"></asp:Button>
            -->
            <!-- 
            <input class="searchInput" name="search" type="text" size="42" maxlength="100" />&nbsp;
            <input class="searchButton" type="submit" value="搜&nbsp;&nbsp;索" width="5.6em" />&nbsp;
            <input class="searchButton" type="submit" value="在结果中查找" width="10em" />
            -->
        </div>
        </form>
        <div id="results" align="right">
            搜索结果：<asp:Label ID="lblCount" runat="server"></asp:Label>个，搜索时间：<asp:Label ID="lblTime" runat="server"></asp:Label>秒</div>
        <div id="lists">
            <ol>
                <asp:Repeater ID="lstReapter" runat="server">
                    <ItemTemplate>
                        <li class="item">
                            <h3>
                                <asp:Label ID="lblFileName" runat="server" Text='<%# Eval("Filename") %>'></asp:Label>
                                &nbsp;&nbsp;
                                [<asp:Label ID="lblIsFile" runat="server" Text='<%# Eval("IsFile").ToString()=="True"?"文件":"目录" %>'></asp:Label>]
                            </h3>
                            <div>
                                <a href='<%# Eval("Path").ToString()+Eval("Filename").ToString() %>'
                                    target="_blank">
                                    <%# Eval("Path").ToString() + Eval("Filename").ToString()%>
                                </a>
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
                <!--
            <li class="item">
            	<h3>文件名</h3>
                <div><a href="#">地址</a></div>
            </li>
            <li class="item">
            	<h3>文件名</h3>
                <div><a href="#">地址</a></div>
            </li>
            -->
            </ol>
        </div>
    </div>
</body>
</html>
